package com.task.scheduling.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @program: task-scheduling
 * @description:
 * @author: zhouliangliang
 * @create: 2018-11-26 19:49
 **/
@Controller
@RequestMapping("/monitor")
public class MonitorController {

    /**
     * 检测系统是不是活着
     * @param request
     * @param response
     * @return
     */
    @RequestMapping("alive")
    @ResponseBody
    public String checkAlive(HttpServletRequest request, HttpServletResponse response) {
        return "alive";
    }
}
